package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.UserIdInvoiceMapper;
import com.ruoyi.system.domain.UserIdInvoice;
import com.ruoyi.system.service.IUserIdInvoiceService;

/**
 * 用户发票存根Service业务层处理
 * 
 * @author 格格本奈
 * @date 2024-03-19
 */
@Service
public class UserIdInvoiceServiceImpl implements IUserIdInvoiceService 
{
    @Autowired
    private UserIdInvoiceMapper userIdInvoiceMapper;

    /**
     * 查询用户发票存根
     * 
     * @param uuid 用户发票存根主键
     * @return 用户发票存根
     */
    @Override
    public UserIdInvoice selectUserIdInvoiceByUuid(Long uuid)
    {
        return userIdInvoiceMapper.selectUserIdInvoiceByUuid(uuid);
    }

    /**
     * 查询用户发票存根列表
     * 
     * @param userIdInvoice 用户发票存根
     * @return 用户发票存根
     */
    @Override
    public List<UserIdInvoice> selectUserIdInvoiceList(UserIdInvoice userIdInvoice)
    {
        return userIdInvoiceMapper.selectUserIdInvoiceList(userIdInvoice);
    }

    /**
     * 新增用户发票存根
     * 
     * @param userIdInvoice 用户发票存根
     * @return 结果
     */
    @Override
    public int insertUserIdInvoice(UserIdInvoice userIdInvoice)
    {
        return userIdInvoiceMapper.insertUserIdInvoice(userIdInvoice);
    }

    /**
     * 修改用户发票存根
     * 
     * @param userIdInvoice 用户发票存根
     * @return 结果
     */
    @Override
    public int updateUserIdInvoice(UserIdInvoice userIdInvoice)
    {
        return userIdInvoiceMapper.updateUserIdInvoice(userIdInvoice);
    }

    /**
     * 批量删除用户发票存根
     * 
     * @param uuids 需要删除的用户发票存根主键
     * @return 结果
     */
    @Override
    public int deleteUserIdInvoiceByUuids(Long[] uuids)
    {
        return userIdInvoiceMapper.deleteUserIdInvoiceByUuids(uuids);
    }

    /**
     * 删除用户发票存根信息
     * 
     * @param uuid 用户发票存根主键
     * @return 结果
     */
    @Override
    public int deleteUserIdInvoiceByUuid(Long uuid)
    {
        return userIdInvoiceMapper.deleteUserIdInvoiceByUuid(uuid);
    }
}
